package com.example.widgetcase;

import com.example.widget_lib.utils.PxUtil;
import com.example.widgetcase.utils.PixelUtil;
import ohos.aafwk.ability.AbilityPackage;

public class MyApplication extends AbilityPackage {

    private static MyApplication INSTANCE;

    public static MyApplication getInstance() {
        return INSTANCE;
    }

    @Override
    public void onInitialize() {
        super.onInitialize();
        INSTANCE = this;
        PixelUtil.initContext(getContext());
        PxUtil.initContext(getContext());
    }
}
